package com.ruoyi.recipes.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 二级菜谱分类对象 categories
 * 
 * @author ruoyi
 * @date 2025-08-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Categories extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 二级分类名 */
    @Excel(name = "二级分类名")
    private String name;

    /** 父分类id */
    private Integer parentId;

    /** 状态（0-启用，1-禁用） */
    @Excel(name = "状态", readConverterExp = "0=-启用，1-禁用")
    private Integer status;

    /** 排序（值越小越靠前） */
    @Excel(name = "排序", readConverterExp = "值=越小越靠前")
    private Integer sort;

    /** 是否删除：0正常 1删除 */
    private Integer del;

    private CategoryTop categoryTop;

}
